﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace GiaoTrinhEPU.Repositories.Interfaces
{
    public interface IDepartmentRepository 
    {
        void CreateDepartment(Department item);
        void UpdateDepartment(Department item);
        void DeleteDepartment(int id);

        IEnumerable<Department> ListDepartments(bool cacheEnabled = true);
        Department GetDepartmentById(int id);

        bool HasNameExisted(String name);
        bool HasNameDuplicated(int id, String name);
    }
}
